package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.Lesson;
import com.mybatisflex.annotation.RelationManyToOne;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 排课信息
 *
 * @author zq
 * @since 2024/08/26 00:02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "排课信息")
public class ClassLessonResp extends Lesson {

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    private String campusName;

    @RelationManyToOne(selfField = "classroomId", targetTable = "edu_classroom", targetField = "id", valueField = "name")
    private String classroomName;

    @RelationManyToOne(selfField = "leadTeacherId", targetTable = "base_employee", targetField = "id", valueField = "name")
    private String leadTeacherName;

    @Schema(description = "星期名称")
    private String weekName;

    @Schema(description = "签到人数")
    private Integer signInCount = 0;

    @Schema(description = "课次人数")
    private Integer totalCount = 0;
}
